import { connect } from 'react-redux';
import Counter from '../components/tty';

import { counterStateType } from '../store/reducers/types';

function mapStateToProps(state: counterStateType) {
  return {
    currentfile: state.currentfile,
    value: state.tty.value
  };
}

export default connect(mapStateToProps)(Counter);